"use strict";
function isIE() {
	if (!!window.ActiveXObject || "ActiveXObject" in window)
		return true;
	else
		return false;
}

if (isIE()) {
    loadScript("../common/scripts/jquery-1.7.1.min.js", function () {
loadScript("../common/scripts/ta.min.js", function () {
loadScript("../common/scripts/inheritance.min.js", function () {
loadScript("../common/scripts/JpjlModel.min.js", function () {
loadScript("js/screenError.js", function () {
loadScript("js/taIds.js", function () {
loadScript("js/clientInterface.js", function () {
loadScript("js/base.js", function () {
loadScript("js/hqdata.js", function () {
loadScript("js/inputwrong.js", function () {
loadScript("js/stockinput.js", function () {
loadScript("js/condition.js", function () {
loadScript("js/send.js", function () {
loadScript("js/validate.js", function () {
loadScript("js/index.js", function () {
loadScript("js/checkTa.js", function () {

try {
    var utils = external.createObject("Util");
    utils.registerCfgNotify({"callback": function(s){
        if(s == 8){
            var checkedDom = $("#ensure").parent().parent().find(".c-on");
            if(checkedDom.length > 0){
            }else{
                external.closeWindow();
            }
        }
    }
    });
} catch (exp) {
    alert(exp.message);
}
$(function(){
    TaNumber.indexTa();
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});

} else {
    loadScript("../common/scripts/thsApi.js", function () {
loadScript("../common/scripts/jquery-1.7.1.min.js", function () {
loadScript("../common/scripts/ta.min.js", function () {
loadScript("../common/scripts/inheritance.min.js", function () {
loadScript("../common/scripts/JpjlModel.min.js", function () {
loadScript("js/screenError.js", function () {
loadScript("js/taIds.js", function () {
loadScript("js/clientInterface.js", function () {
loadScript("js/base.js", function () {
loadScript("js/hqdata.js", function () {
loadScript("js/inputwrong.js", function () {
loadScript("js/stockinput.js", function () {
loadScript("js/condition.js", function () {
loadScript("js/send.js", function () {
loadScript("js/validate.js", function () {
loadScript("js/index.js", function () {
loadScript("js/checkTa.js", function () {

try {
    var utils = external.createObject("Util");
    utils.registerCfgNotify({"callback": function(s){
        if(s == 8){
            var checkedDom = $("#ensure").parent().parent().find(".c-on");
            if(checkedDom.length > 0){
            }else{
                external.closeWindow();
            }
        }
    }
    });
} catch (exp) {
    alert(exp.message);
}
$(function(){
    TaNumber.indexTa();
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});
});

}

function loadScript (src, callback) {
	var body= document.getElementsByTagName("body")[0];
	var script= document.createElement("script");
	script.type= "text/javascript";
	script.onload = script.onreadystatechange = function() {
	    if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") {
	        callback ? callback() : "";
	        script.onload = script.onreadystatechange = null;
	    }
	};
	script.src= src;
	body.appendChild(script);
}
